#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START zlib

mkdir -p build/zlib
cd build/zlib
# Thanks God zlib does NOT use autocrap
env CROSS_PREFIX="${TARGET}-" \
../../zlib/configure \
	--prefix=$prefix \
	--libdir=$prefix/${target_libdir}

cd ../..
make_build build/zlib

# RECIPE END zlib
